home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.549 < prev    next >
Encoding:
Text File  |  1996-02-12  |  27.9 KB  |  537 lines

  1. Frequently Asked Questions (FAQS);faqs.549
  2.  
  3.  
  4. Affiliate of the Consortium is welcomed.
  5.     Write to: Bob Scheifler, MIT X Consortium, Laboratory for Computer
  6. Science, 545 Technology Square, Cambridge, MA 02139.
  7.  
  8. [For complete information see the XCONSORTIUM man page from the X11R4
  9. distribution, from which this information is adapted.] [2/90]
  10.  
  11. ----------------------------------------------------------------------
  12. Subject:  12)  Just what are OPEN LOOK and Motif?
  13.  
  14.     OPEN LOOK and Motif are two graphical user interfaces (GUIs). OPEN LOOK
  15. was developed by Sun with help from AT&T and many industry reviewers; Motif was
  16. developed by the Open Software Foundation (OSF) with input from many OSF
  17. members.
  18.  
  19.     OPEN LOOK is primarily a user-interface specification and style-guide;
  20. there are several toolkits which can be used to produce OPEN LOOK applications.
  21. Motif includes an API specification; the only sanctioned Motif toolkit is the
  22. one from OSF. However, there are other toolkits which can be used to produce
  23. programs which look and behave like OSF/Motif; one of these, ParcPlace's
  24. (formerly Solbourne's) OI, is a "virtual toolkit" which provides objects in the
  25. style of OPEN LOOK and Motif, at the user's choice.
  26.  
  27.     OPEN LOOK GUI is also the name of a product from AT&T, comprising
  28. their OPEN LOOK Intrinsics Toolkit and a variety of applications.
  29.  
  30. [Thanks to Ian Darwin, ian@sq.com, 5/91]
  31.  
  32. ----------------------------------------------------------------------
  33. Subject:  13)  Just what is OpenWindows?
  34.  
  35.     Open Windows (3.0) is a Sun product that encompasses: a window system
  36. that combines a NeWS and X11-compliant server (X/NeWS); a user-interface
  37. specification (OPEN LOOK) and a series of toolkits that implement it (including
  38. the SunView-like XView and the Xt-based OLIT); Xlib and Xt implementations; and
  39. a number of utilities (olwm window manager, filemgr, shelltool, etc.).
  40.  
  41. [thanks to Frank Greco (fgreco@govt.shearson.COM), 8/90; 4/92]
  42.  
  43. ----------------------------------------------------------------------
  44. Subject:  14)  Just what is DECWindows?
  45.  
  46.     DECWindows is a DEC product that encompasses: an X11 server; the XUI
  47. toolkit, including the Dwt widget set and UIL; Xlib and Xt implementations; a
  48. session manager; and a number of utilities (dxwm window manager, dxcalendar,
  49. dxpsview, etc.).
  50.  
  51. (At some point Motif flavors of the toolkit and applications will be shipped.)
  52. [8/90]
  53.  
  54. ----------------------------------------------------------------------
  55. Subject:  15)  What is PEX?
  56.  
  57.     PEX is the "PHiGS Extension to X".
  58.     PHiGS stands for "Programmer's Hierarchical Interactive Graphics
  59. System" and is essentially a library of functions that simplifies the creation
  60. and manipulation of 3D graphics. Many platforms are capable of performing in
  61. hardware the computations involved in rendering 3D objects; the extension
  62. allows the client (PHiGS in this case) to take advantage of the specialized
  63. hardware for 3D graphics.
  64.     Sun Microsystems is currently contracted to develop a freely
  65. redistributable (copyright similar to the current X copyright) sample
  66. implementation.  Source and documentation are available in the R5 release.
  67. Several vendors are currently selling independently-developed PEX servers for
  68. their workstations and X terminals.
  69.  
  70. [last modified 10/91]
  71.  
  72. ----------------------------------------------------------------------
  73. Subject:  16)  What is "low-bandwidth X" (LBX)? XRemote? PPP? SLIP? CSLIP?
  74.  
  75. There are several options for using X over serial lines:
  76.  
  77. SLIP - Serial Line IP; this is both a mechanism and a protocol for sending IP
  78. packets over point-to-point serial links. It has been around for several years,
  79. and implementations are available for many of the major TCP/IP implementations.
  80. Most X Terminal vendors supply this as a checkoff item, although nobody really
  81. ever uses it since it is horribly slow.  The TCP/IP headers add 40 bytes per
  82. packet and the TCP/IP encoding of the X protocol is rather verbose (rightfully
  83. so; it is optimized for packing and unpacking over high-speed links).
  84.  
  85. CSLIP - Compressed header SLIP; this is a variant of SLIP that compresses the 40
  86. bytes of TCP/IP headers down to about 5 or 6 bytes.  It still doesn't do
  87. anything about reencoding the X protocol.  Modems that do compression can help,
  88. but they increase packet latency (it takes time to dribble the uncompressed data
  89. through typical serial interfaces, plus the compression assembly time).
  90.  
  91. PPP - Point-to-Point Protocol; this is an emerging standard for point-to-point
  92. links over serial lines that has a more complete set of option negotiation than
  93. SLIP.  A growing number of people see the combination of PPP for the serial line
  94. management and CSLIP for the header compression as becoming common for running
  95. normal TCP/IP protocols over serial lines.  Running raw X over the wire still
  96. needs compression somewhere to make it usable.
  97.  
  98. XRemote - this is the name of both a protocol and set of products originally
  99. developed by NCD for squeezing the X protocol over serial lines.  In addition to
  100. using a low level transport mechanism similar to PPP/CSLIP, XRemote removes
  101. redundancies in the X protocol by sending deltas against previous packets and
  102. using LZW to compress the entire data stream.  This work is done by either a
  103. pseudo-X server or "proxy" running on the host or in a terminal server.  There
  104. are several advantages to doing compression outside the modem:
  105.    (1)    You don't *have* to have compressing modems in there if you wouldn't
  106.     otherwise be using them (e.g. if you were going to be directly
  107.     connected), and
  108.    (2)    It reduces the I/O overhead by cutting down on the number of bytes that
  109.     have to cross the serial interface, and
  110.    (3)    In addition to the effects of #2, it reduces the latency in delivering
  111.     packets by not requiring the modem to buffer up the data waiting for
  112.     blocks to compress.
  113.  
  114. LBX - Low Bandwidth X; this is an X Consortium project that is working on a
  115. standard for this area.  It is being chaired by NCD and Xerox and is using NCD's
  116. XRemote protocol as a stepping stone in developing the new protocol.  LBX will
  117. go beyond XRemote by adding proxy caching of commonly-used information (e.g.
  118. connection setup data, large window properties, font metrics, keymaps, etc.) and
  119. a more efficient encoding of the X protocol. The hope is to have a Standard
  120. ready for public review in the first half of next year and a sample
  121. implementation available in R6.
  122.  
  123. Additional technical information about how XRemote works and a few notes on how
  124. LBX might be different are available via anonymous ftp from export.lcs.mit.edu
  125. in contrib/ in the following files:
  126.         XRemote-slides.ps               slides describing XRemote
  127.         XRemote-LBX-diffs.ps            more slides describing some of LBX
  128.  
  129. [information provided by Jim Fulton, jim@ncd.com; 7/92]
  130.  
  131. ----------------------------------------------------------------------
  132. Subject:  17)  TOPIC: USING X IN DAY-TO-DAY LIFE
  133. ----------------------------------------------------------------------
  134. Subject:  18)! What are all these different window managers?
  135.  
  136.     The window manager in X is just another client -- it is not part of the
  137. X window system, although it enjoys special privileges -- and so there is
  138. no single window manager; instead, there are many which support different ways
  139. for the user to interact with windows and different styles of window layout,
  140. decoration, and keyboard and colormap focus. In approximate chronological order
  141. (generally, the more recent ones are more conformant with the ICCCM):
  142.  
  143.     wm: this simple title-bar window manager was phased out in R2 or R3
  144.     uwm: the Universal Window Manager is still popular for its speed,
  145. although it is very outdated. Moved to contrib/ on the R4 tape.
  146.     twm (old): Tom's Window Manager was among the first non-MIT window
  147. managers and offered the user a great deal of customization options in a
  148. re-parenting window manager.
  149.     awm: the Ardent Window Manager remains a hotbed for hackers and offers
  150. some features (dynamic menus) not found on more current window managers
  151.     cwm: cwm is part of the Andrew system.
  152.     rtl: Siemen's window manager tiles windows so that they don't overlap
  153. and resizes the window with the focus to its preferred size.
  154.     dxwm: Digital's dxwm is part of the DECwindows offering
  155.     hpwm: HP's window manager offers a 3D look; it is a precursor of mwm
  156.     mwm: the Motif window manager is part of the OSF/Motif toolkit
  157.     tekwm: Tektronix's window manager offering
  158.     olwm (Sun): olwm implements the OPEN LOOK GUI and some of the Style
  159. Guide functionality
  160.     olwm (AT&T): ditto
  161.     gwm: Bull's Generic Window Manager emulates others with a built-in
  162. Lisp interpreter. Version 1.7h (10/91) is on the R5 contrib tape; 1.7m is on
  163. avahi.inria.fr and export.lcs.mit.edu. [8/92]
  164.     m_swm: the Sigma window manager is on the R4 tape
  165.     pswm: Sun's PostScript-based pswm is part of the OpenWindows release
  166.     swm: Solbourne's swm is based on the OI toolkit and offers multiple
  167. GUI support and also a panned virtual window; configuration information comes
  168. from the resources file
  169.     twm (new): MIT's new Tab Window Manager from the R4 tape is a reworked
  170. twm and is the basis for several derivatives, including the one on the R5 tape
  171.     vtwm: vtwm offers some of the virtual-desktop features of swm, with a
  172. single-root window implementation; it is based on the R4 twm and is available
  173. on archive servers. A new version, vtwm-5.0, is based on R5.9 and is available
  174. from export. [3/92]
  175.     tvtwm: Tom's Virtual Tab Window Manager is also based on the R4 twm
  176. and provides a virtual desktop modeled on the virtual-root window of swm. It is
  177. available on archive servers
  178.     olvwm: the vtwm-style virtual-desktop added to Sun's olwm. It is
  179. available on archive servers; version 3.0 [1/92] is on export.
  180.     mvwm: the vtwm-style virtual-desktop added to OSF's mwm. A beta version
  181. is floating around (most recently from suresh@unipalm.co.uk) but requires a
  182. source license to OSF/Motif 1.1.3 [3/92].
  183.     NCDwm: the window manager local to NCD terminals offers an mwm look
  184.     XDSwm: the window manager local to Visual Technology's terminals
  185.     ctwm: Claude Lecommandeur's (lecom@sic.epfl.ch) modification of the R5
  186. twm offers 32 virtual screens in the fashion of HP vuewm; source is on export.
  187. Version 2.0 also offers the window overview used in vtwm and tvtwm.
  188.     vuewm: HP's MWM-based window manager offers configurable workspaces.
  189.     4Dwm: SGI's enhanced MWM
  190.  
  191. ----------------------------------------------------------------------
  192. Subject:  19)  Why does my X session exit when I kill my window manager (sic)?
  193.  
  194.     It needn't.  What is probably happening is that you are running your
  195. window manager as the last job in your .xsession or .xinitrc file; your X
  196. session runs only as long as the last job is running, and so killing your
  197. window manager is equivalent to logging out. Instead, run the window manager in
  198. the background, and as the last job instead invoke something safe like:
  199.         exec xterm -name Login -rv -iconic
  200. or any special client of your devising which exits on some user action.
  201. Your X session will continue until you explicitly logout of this window,
  202. whether or not you kill or restart your window manager.
  203.  
  204. ----------------------------------------------------------------------
  205. Subject:  20)  Can I save the state of my X session, like toolplaces does?
  206.  
  207.     Although no known window manager directly supports such a feature --
  208. which may be equivalent to writing out a .xinitrc or .xsession file naming the
  209. geometry and WM_COMMAND of each application (but olvwm may have something
  210. close) -- there is a contributed application which does much of what you are
  211. looking for, although it is not as complete as the SunView program toolplaces.
  212. Look for the application "xplaces" on an archive-server near you. There are
  213. several versions of this program floating around; look for a recent vintage.
  214. [10/90]
  215.  
  216. ----------------------------------------------------------------------
  217. Subject:  21)  How do I use another window manager with DEC's session manager?
  218.  
  219.     DEC's session manager will start dxwm up by default. To override this,
  220. add to your .Xdefaults file something like this line, naming the full pathname:
  221.     sm.windowManagerName:   /wherever/usr/bin/X11/your_favorite_wm
  222.  
  223. ----------------------------------------------------------------------
  224. Subject:  22)  How do I change the keyboard auto-repeat rate?
  225.  
  226.     You can turn auto-repeat on or off by using "xset r on|off". The X
  227. protocol, however, doesn't provide for varying the auto-repeat rate, which is
  228. a capability not supported by all systems.
  229.     Some servers running on systems that support this (the Xsun server from
  230. MIT, for example), however, may provide command-line flags to set the rate at
  231. start-up time. If you have control over server start-up, you can invoke the
  232. server with the chosen settings.
  233.  
  234. ----------------------------------------------------------------------
  235. Subject:  23)  How do I remap the keys on my keyboard to produce a string?
  236.  
  237.     There is no method of arranging for a particular string to be
  238. produced when you press a particular key. The xmodmap client, which is useful
  239. for moving your CTRL and ESC keys to useful places, just rearranges keys and
  240. does not do "macro expansion."
  241.     Some (few) clients, including xterm and several X-based editors,
  242. accept a translation resource such as:
  243.     xterm*VT100.Translations: #override \
  244.         <Key>F1: string("setenv DISPLAY unix:0")
  245. which permits the shorthand F1 to be pressed to reset the display locally
  246. within an xterm; it takes effect for new xterm clients. To include control
  247. characters in the string, use \nnn, where nnn is the octal encoding of the
  248. control character you want to include.
  249.     Window managers, which could provide this facility, do not yet; nor
  250. has a special "remapper" client been made available.
  251.  
  252. ----------------------------------------------------------------------
  253. Subject:  24)! How do I make a screendump or print my application?
  254.  
  255.     The xwd client in the X11 distributions can be used to select a window
  256. or the background. It produces an XWD-format file of the image of that window.
  257. The file can be post-processed into something useful or printed with the xpr
  258. client and your local printing mechanism. You can use this command:
  259.         csh% sleep 10; xwd -root > output.xwd &
  260. and then spend 10 seconds or so setting up your screen; the entire current
  261. display will be saved into the file output.xwd. Note that xwd also has an
  262. undocumented (before R5) -id flag for specifying the window id on the
  263. command-line. [There are also unofficial patches on export to xwd for
  264. specifying the delay and the portion of the screen to capture.]
  265.  
  266.     Two publicly-available programs which allow interactive definition of
  267. arbitrary portions of the display and built-in delays are asnap and xgrabsc.
  268. There are several versions of xgrabsc; version 2.2, available on export [8/92]
  269. is the most recent.
  270.     xsnap includes some asnap features and supersedes it; it also renders
  271. XPM output [version unknown]. It is available on export or avahi.inria.fr;
  272. see xsnap-pl2.tar.Z.
  273.     A screen-dump and merge/edit program combining features of xwd and xpr
  274. is available from vernam.cs.uwm.edu as xdump1.0.tar.Z. Information:
  275. soft-eng@cs.uwm.edu.
  276.  
  277.     To post-process the xwd output of some of these tools, you can use xpr,
  278. which is part of the X11 distribution. Also on several archives are xwd2ps
  279. and XtoPS, which produce Encapsulated PostScript with trimmings suitable for
  280. use in presentations (see export.lcs.mit.edu:contrib/xwd2ps.tar.Z and
  281. contrib/ImageMagick.tar.Z). Also useful is the PBMPLUS package on many archive
  282. servers; and the Xim package contains Level 2 color PostScript output.
  283.  
  284.     Also:
  285.  
  286.     Bristol Technology (info@bristol.com, 203-438-6969) offers Xprinter
  287. 2.0, an Xlib API for PostScript and PCL printers; a demo is on ftp.uu.net
  288. in vendor/Bristol/Xprinter.
  289.  
  290.     ColorSoft 9619-459-8500) offers OPENprint package includes a screen-
  291. capture facility, image-processing, and support for PostScript and
  292. non-PostScript printers.
  293.  
  294.     Some vendors' implementations of X (e.g. DECWindows and OpenWindows)
  295. include session managers or other desktop programs which include "print portion
  296. of screen" or "take a snapshot" options. Some platforms also have tools which
  297. can be used to grab the frame-buffer directly; the Sun systems, for example,
  298. have a 'screendump' program which produces a Sun raster file. Some X terminals
  299. have local screen-dump utilities to write PostScript to a local serial printer.
  300.  
  301.     Some vendors' implementations of lpr (e.g. Sony) include direct
  302. support for printing xwd files, but you'll typically need some other package
  303. to massage the output into a useful format which you can get to the printer.
  304.  
  305. ----------------------------------------------------------------------
  306. Subject:  25)! How do I make a color PostScript screendump of the X display?
  307.  
  308.     If you need color PostScript in particular, you can
  309.     - grab the screen-image using xgrabsc to begin with, which can produce
  310. color PostScript.
  311.     - grab the screen-image using xwd and post-process xwd into color PS.
  312. You can do this using xwd2ps or the XtoPS program from the ImageMagick
  313. distribution. The PBMPLUS package is also good for this, as is the Xim package.
  314.  
  315. ----------------------------------------------------------------------
  316. Subject:  26)  How do I make a screendump including the X cursor?
  317.  
  318.     This can't be done unless the X server has been extended. Consider
  319. instead a system-dependent mechanism for, e.g.,  capturing the frame-buffer.
  320.  
  321. ----------------------------------------------------------------------
  322. Subject:  27)! How do I convert/view Mac/TIFF/GIF/Sun/PICT/img/FAX images in X?
  323.  
  324.     The likeliest program is an incarnation of Jef Poskanzer's useful++
  325. Portable Bitmap Toolkit, which includes a number of programs for converting
  326. among various image formats. It includes support for many types of bitmaps,
  327. gray-scale images, and full-color images. PBMPLUS has been updated recently;
  328. the most recent version [12/91] is on export in contrib/pbmplus10dec91.tar.Z.
  329.     Another tool is San Diego Supercomputing Center's IMtools ('imconv' in
  330. particular), which packages the functionality of PBM into a single binary.
  331. It's available anonymous ftp from sdsc.edu (132.249.20.22).
  332.  
  333.     Useful for viewing some image-formats is Jim Frost's xloadimage, a
  334. version of which is in the R4 directory contrib/clients/xloadimage; there are
  335. later versions available, including contrib/xloadimage.3.03.tar.Z on export.
  336. Graeme Gill's updates to an earlier version of xloadimage are also on export;
  337. see xli.README and xli.tar.Z.uu.
  338.  
  339.     An alternate image-viewer is xv (X Image Viewer), written by
  340. bradley@cis.upenn.edu (John Bradley). XV displays many image formats and
  341. permits editing of GIF files, among others. The program was updated 5/92; see
  342. the file contrib/xv-2.21.tar.Z on export.lcs.mit.edu.
  343.  
  344.     The Fuzzy Pixmap Manipulation, by Michael Mauldin <mlm@nl.cs.cmu.edu>.
  345. Conversion and manipulation package, similar to PBMPLUS.  Version 1.0 available
  346. via FTP as nl.cs.cmu.edu:/usr/mlm/ftp/fbm.tar.Z, uunet.uu.net:pub/fbm.tar.Z,
  347. and ucsd.edu:graphics/fbm.tar.Z.
  348.  
  349.     The Img Software Set, by Paul Raveling <raveling@venera.isi.edu>, reads
  350. and writes its own image format, displays on an X11 screen, and does some image
  351. manipulations.  Version 1.3 is available via FTP on expo.lcs.mit.edu as
  352. contrib/img_1.3.tar.Z, along with large collection of color images.
  353.  
  354.     The Utah RLE Toolkit is a conversion and manipulation package similar
  355. to PBMPLUS.  Available via FTP as cs.utah.edu:pub/urt-*,
  356. weedeater.math.yale.edu:pub/urt-*, and freebie.engin.umich.edu:pub/urt-*.
  357.  
  358.     Xim, The X Image Manipulator, by Philip Thompson, does essential
  359. interactive displaying, editing, filtering, and converting of images. There is
  360. a version in the X11R4 contrib area; but a more recent version (using R4 and
  361. Motif 1.1) is available from gis.mit.edu (18.80.1.118). Xim reads/writes gif,
  362. xwd, xbm, tiff, rle, xim, (writes level 2 eps) and other formats and also has a
  363. library and command-line utilities for building your own applications.
  364.  
  365.     ImageMagick [2.1b] by cristy@dupont.com can be retrieved from export's
  366. contrib area. It is a collection of utilities to transform and display images
  367. on any X server. The tool uses the MIFF format; filters to and from MIFF from
  368. other popular formats (PPM, TIFF, GIF, SUN Raster, etc) are included.
  369.  
  370.     xtiff is a tool for viewing a TIFF file in an X window.  It was written
  371. to handle as many different kinds of TIFF files as possible while remaining
  372. simple, portable and efficient.  xtiff illustrates some common problems
  373. with building pixmaps and using different visual classes.  It is distributed
  374. as part of Sam Leffler's libtiff package and it is also available on
  375. export.lcs.mit.edu, uunet.uu.net and comp.sources.x. [dbs@decwrl.dec.com,10/90]
  376. xtiff 2.0 was announced in 4/91; it includes Xlib and Xt versions.
  377.  
  378.     A version of Lee Iverson's (leei@McRCIM.McGill.EDU) image-viewing tool
  379. is available as contrib/vimage-0.9.3.tar.Z on export.lcs.mit.edu.  The package
  380. also includes an ImageViewPort widget and a FileDialog widget. [12/91;5/92]
  381.  
  382. [some material from Larry Carroll (larryc@poe.jpl.nasa.gov), 5/91]
  383.  
  384. ----------------------------------------------------------------------
  385. Subject:  28)  How can I change the titlebar of my xterm window?
  386.  
  387.     The solution involves sending an escape sequence to xterm which will
  388. cause it to update the property which the window manager relies upon for the
  389. string which appears in the window titlebar.
  390.     A solution is as easy as typing this in an xterm running a shell:
  391.         echo "ESC]2;TEXT^G"
  392. where ESC is the escape key, TEXT is the string you wish to have displayed,
  393. and ^G is a Control-G (the BEL character).
  394.  
  395.     Here is a more complicated csh alias which changes the titlebar to
  396. the current working directory when you change directories:
  397.         alias newcd 'cd \!*; echo -n ESC]2\;$cwd^G'
  398.  
  399.     The digit '2' in these strings indicates to xterm that it should
  400. change only the title of the window; to change both the title and the name
  401. used in the icon, use the digit '0' instead, and use '1' to change only the
  402. icon name.
  403.  
  404.     Note: another way to do this, which prevents an incorrect display of
  405. the local directory if a modified `cd` is used in a subshell, is to wrap the
  406. escape sequences into the PS1 prompt itself.
  407.  
  408.     Note: on an IBM RS/6000 is may be necessary to begin the sequence with
  409. a ^V.
  410.  
  411. ----------------------------------------------------------------------
  412. Subject:  29)  Where can I find the xterm control sequences?
  413.  
  414. The best source of such information is in your R5 sources in the file
  415. ctlseqs.ms; a PostScript version is in mit/hardcopy/clients/ctlseqs.PS.Z.
  416.  
  417. Other good sources of information include the R4 version of that document
  418. and also the file in the R4 sources called mit/clients/xterm/ctlseq2.txt, a
  419. compilation put together by Skip Montanaro (GE CR&D) listing the VT100
  420. sequences. It dates from R3 but is fairly accurate.  A hardcopy version was
  421. published in the December 1989 XNextEvent (the XUG newsletter).
  422.  
  423. In addition, Volume 3 (User's Guide) of the R4 flavor of the O'Reilly
  424. X Window System series contains an appendix listing xterm control sequences;
  425. it is less accurate than the information in the R5 or R4 sources.
  426.  
  427. In a pinch, a VT100 manual will do.
  428.  
  429. [last updated 10/91]
  430.  
  431. ----------------------------------------------------------------------
  432. Subject:  30)  Why does the R3 xterm, et al, fail against the R4 server?
  433.  
  434.     The value given to a window's do_not_propagate mask is the likely
  435. culprit.  R3 allowed bogus values to be set, and early version of both Andrew
  436. and InterViews did, as well. Similar problems also occur in the R3 Motif
  437. PanedWindow widget.
  438.     If it is impossible to fix client source -- and many systems still ship
  439. the R3 xterm -- use 'xset bc' to put the X11R4 server into bug-compatibility
  440. mode.
  441.  
  442. ----------------------------------------------------------------------
  443. Subject:  31)  How can I use characters above ASCII 127 in xterm ?
  444.  
  445.     In order to use special characters such as the o-umlaut, you need to
  446. "stty pass8" but also to use a charcell ISO8859 font, such as
  447.     XTerm*font:     -*-*-medium-r-normal-*-*-130-*-*-c-*-iso8859-1
  448.     XTerm*boldfont:    -*-*-bold-r-normal-*-*-130-*-*-c-*-iso8859-1
  449. [The family is intentionally unspecified in this example.]
  450.  
  451. In addition, you may want to set this in your shell:
  452.     setenv LC_CTYPE iso_8859_1
  453.  
  454.         For a given character above 127, you can determine the key to use with
  455. the Alt modifier by finding the equivalent character below 127 (try using
  456. `man ascii`). For example, o-umlaut (v) is Alt-v and the section character (')
  457. is Alt-'.
  458.  
  459. [thanks to Greg Holmberg (greg%thirdi@uunet.uu.net) and Stephen Gildea
  460. (gildea@expo.lcs.mit.edu); 6/92]
  461.  
  462. ----------------------------------------------------------------------
  463. Subject:  32)  Why are my xterm menus so small?
  464.  
  465.     You are probably setting the geometry small accidentally. If you give
  466. a resource specification like this:
  467.         xterm*geometry: 80x24
  468. then you are asking for all widgets under xterm to have their geometry set to
  469. 80x24. For the main window, this is OK, as it uses characters for its size.
  470. But its popup menus don't; they are in pixels and show up small. To set only
  471. the terminal widget to have the specified geometry, name it explicitly:
  472.         xterm*VT100.geometry: 80x24
  473.  
  474. ----------------------------------------------------------------------
  475. Subject:  33)  How can I print the current selection?
  476.  
  477.     You could paste it into an xterm after executing the lpr command.
  478. However, a program by Richard Hesketh (rlh2@ukc.ac.uk) specifically for
  479. manipulating the selection will help; e.g.
  480.     % xselection PRIMARY | lpr
  481. finds the primary selection and prints it. This command can be placed in a
  482. window-manager menu or in shell-scripts. xselection also permits the setting of
  483. the selection and other properties. A version is on export.
  484.     Also available is ria.ccs.uwo.ca:pub/xget_selection.tar.Z, which can be
  485. adapted to do this.
  486.  
  487. ----------------------------------------------------------------------
  488. Subject:  34)  How does Xt use environment variables in loading resources?
  489.  
  490.     You can use several environment variables to control how resources are
  491. loaded for your Xt-based programs -- XFILESEARCHPATH, XUSERFILESEARCHPATH, and
  492. XAPPLRESDIR.  These environment variables control where Xt looks for
  493. application-defaults files as an application is initializing.  Xt loads at most
  494. one app-defaults file from the path defined in XFILESEARCHPATH and another from
  495. the path defined in XUSERFILESEARCHPATH.
  496.  
  497.     Set XFILESEARCHPATH if software is installed on your system in such a
  498. way that app-defaults files appear in several different directory hierarchies.
  499. Suppose, for example, that you are running Sun's Open Windows, and you also
  500. have some R4 X applications installed in /usr/lib/X11/app-defaults. You could
  501. set a value like this for XFILESEARCHPATH, and it would cause Xt to look up
  502. app-defaults files in both /usr/lib/X11 and /usr/openwin/lib (or wherever your
  503. OPENWINHOME is located):
  504.     setenv XFILESEARCHPATH /usr/lib/X11/%T/%N:$OPENWINHOME/lib/%T/%N
  505.  
  506.     The value of this environment variable is a colon-separated list of
  507. pathnames.  The pathnames contain replacement characters as follows:
  508.     %T        the literal string "app-defaults" [works only in
  509.             XFILESEARCHPATH]
  510.     %N        application class name
  511.     %C        customization resource (R5 only)
  512.     %L        language, locale, and codeset (e.g. "ja_JP.EUC")
  513.     %l        language part of %L  (e.g. "ja")
  514.  
  515.     Let's take apart the example.  Suppose the application's class name is
  516. "Myterm". Also, suppose Open Windows is installed in /usr/openwin. (Notice the
  517. example omits locale-specific lookup.)
  518.     /usr/lib/X11/%T/%N        means /usr/lib/X11/app-defaults/Myterm
  519.     $OPENWINHOME/lib/%T/%N    means /usr/openwin/lib/app-defaults/Myterm
  520.  
  521.     As the application initializes, Xt tries to open both of the above
  522. app-defaults files, in the order shown.  As soon as it finds one, it reads it
  523. and uses it, and stops looking for others.  The effect of this path is to
  524. search first in /usr/lib/X11, then in /usr/openwin.
  525.  
  526.     Let's consider another example. This time, let's set
  527. XUSERFILESEARCHPATH so it looks for the file Myterm.ad in the current working
  528. directory, then for Myterm in the directory ~/app-defaults.
  529.     setenv XUSERFILESEARCHPATH ./%N.ad:$HOME/app-defaults/%N
  530.  
  531.     The first path in the list expands to ./Myterm.ad.  The second expands
  532. to $HOME/app-defaults/Myterm.  This is a convenient setting for debugging
  533. because it follows the Imake convention of naming the app-defaults file
  534. Myterm.ad in the application's source directory, so you can run the application
  535. from the directory in which you are working and still have the resources loaded
  536. properly.
  537.